using System.ComponentModel.DataAnnotations;

namespace Quintsys.Common.DataAnnotations
{
    public class BooleanMustBeTrueAttribute : ValidationAttribute
    {
        public override bool IsValid(object propertyValue)
        {
            return propertyValue is bool && (bool)propertyValue;
        }
    }
}